import Vue from 'vue'

 const app = {
    state: {
        theme: '',
    },
    mutations: {
        TOGGLE_THEME: (state,theme)=> {
            state.theme = theme;
        }
    },
    actions: {
        ToggleTheme({ commit }, theme){
            commit('TOGGLE_THEME',theme);
        }
    }
}
export default app;
